//package com.plian.system.service.hr.employment.impl;
//
//import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
//import com.plian.Tools.CollectionUtil;
//import com.plian.system.entity.hr.employment.EmploymentDetail;
//import com.plian.system.mapper.hr.employment.EmploymentDetailMapper;
//import com.plian.system.mybatis.base.BaseServiceImpl;
//import com.plian.system.service.hr.employment.IEmploymentDetailService;
//import org.springframework.stereotype.Service;
//
//import java.util.List;
//import java.util.stream.Collectors;
//
///**
// * @Description: TODO
// * @Author: Take-off
// * @Date: 2023/5/16 11:15 AM
// * @Param
// * @return
// * @Version: 1.0
// **/
//@Service
//public class EmploymentDetailServiceImpl extends BaseServiceImpl<EmploymentDetailMapper, EmploymentDetail> implements IEmploymentDetailService {
//
//    @Override
//    public boolean deleteByParentId(List<Long> ids) {
//        LambdaQueryWrapper<EmploymentDetail> queryWrapper = new LambdaQueryWrapper<>();
//        queryWrapper.in(EmploymentDetail::getBasePlanId, ids);
//        List<EmploymentDetail> employmentDetails = list(queryWrapper);
//        if (CollectionUtil.isNotEmpty(employmentDetails)){
//            return deleteLogic(employmentDetails.stream().map(EmploymentDetail::getId).collect(Collectors.toList()));
//        }
//        return true;
//    }
//}
